package com.v0710.tempro;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.SystemIndependent;

/**
 * @Author YIFan
 * @Date 2021-7-29 10:17
 * @Version 1.0
 */
public class tempProPlug extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        Project data = e.getData(PlatformDataKeys.PROJECT);
        String name = data.getName();
        // name:tempProPlug path:E:/_Code/Java_Code/tempProPlug
        @SystemIndependent String basePath = data.getBasePath();
        System.err.println("name:"+name+" path:"+basePath);

        Dialog dialog = new Dialog(name,basePath,"com.v0710."+name);
        System.err.println(dialog);
        dialog.show();
    }
}
